package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 转校详情
 * </p>
 *
 * @author hpiggy
 * @since 2024-04-06
 */
@Data
@TableName("change_school_detail")
@ApiModel(value = "ChangeSchoolDetail对象", description = "转校详情")
public class ChangeSchoolDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.NONE)
    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("change_school表id")
    private Long changeSchoolId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("学生名称")
    @TableField(exist = false)
    private String studentName;

    @ApiModelProperty("转出校区id")
    private Long outSchoolId;

    @ApiModelProperty("转出校区名称")
    @TableField(exist = false)
    private String outSchoolName;

    @ApiModelProperty("转入校区id")
    private Long inSchoolId;

    @ApiModelProperty("转入校区名称")
    @TableField(exist = false)
    private String inSchoolName;

    @ApiModelProperty("更换的教师id【可选】")
    private Long changeTeacherId;

    @ApiModelProperty("【可选】扣课时时才使用，转出课时")
    private Integer turnOutHouse;

    @ApiModelProperty("【可选】扣课时时才使用，转出金额")
    private BigDecimal turnOutPrice;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("共多少个课时")
    private Integer allCourseCount;

    private BigDecimal allPrice;

    @ApiModelProperty("使用金额")
    private BigDecimal usePrice;

    @ApiModelProperty("使用课时")
    private Integer useCourseCount;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("1按学员，2按教师，3按校长")
    private Integer type;

    @ApiModelProperty("0未转校，1已转校，2转校失败（扣课时时才使用）")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @ApiModelProperty("操作人员名称")
    @TableField(exist = false)
    private String createdName;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableLogic
    private Integer deleted;


    @ApiModelProperty("已用课次")
    @TableField(exist = false)
    private List<RecordCourse> recordCourseList;

    @TableField(exist = false)
    private ChangeSchool changeSchool;

    @ApiModelProperty("头像")
    @TableField(exist = false)
    private String headImg;
}
